#include "server.hpp"
#include <memory>

static void usage(char *argv[])
{
    std::cout << "\nUsage:" << " proc:" << argv[0] << std::endl;
}

int main(int argc, char *argv[])
{
    // if(argc != 3)
    // {
    //     usage(argv);
    //     exit(1);
    // }
    //std::string ip = argv[1];
    //uint16_t port = atoi(argv[2]);
    uint16_t port = atoi("8080");
    //智能指针
    std::unique_ptr<UdpServer> svr(new UdpServer(port));
    svr->initServer();
    svr->start();
    return 0;
}